home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / CODE / Chap05 / CtlDemo2 / CtlDemo2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-05  |  770 b   |  41 lines

  1. //***********************************************************************
  2. //
  3. //  CtlDemo2.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CNumEdit : public CEdit
  8. {
  9. protected:
  10.     afx_msg void OnChar (UINT, UINT, UINT);
  11.     DECLARE_MESSAGE_MAP ()
  12. };
  13.  
  14. class CMyApp : public CWinApp
  15. {
  16. public:
  17.     virtual BOOL InitInstance ();
  18. };
  19.  
  20. class CMainWindow : public CFrameWnd
  21. {
  22. private:
  23.     int m_cxChar;
  24.     int m_cyChar;
  25.     CFont m_font;
  26.  
  27.     CStatic m_ctlLabel1;
  28.     CStatic m_ctlLabel2;
  29.     CEdit m_ctlStdEdit;
  30.     CNumEdit m_ctlNumEdit;
  31.  
  32. public:
  33.     CMainWindow ();
  34.  
  35.     virtual BOOL PreTranslateMessage (MSG*);
  36.  
  37. protected:
  38.     afx_msg int OnCreate (LPCREATESTRUCT);
  39.     DECLARE_MESSAGE_MAP ()
  40. };
  41.